# -*- coding: utf-8 -*-
"""
Created on Fri May 17 16:01:13 2024

@author: Administrator
"""
def is_shuixianhua(number:int):
    a = number // 100
    b = number // 10 % 10
    c = number % 10
#    is_shuixianhua = list(a,b,c)
#    a = int(is_shuixianhua[0])
#    b = int(is_shuixianhua[1])
#    c = int(is_shuixianhua[2])
#    is_shuixianhua = int(a,b,c)
    if number == a**3 + b**3 + c**3:
        result = True
    else:
        result = False
    return result

num_test = int(input("请输入一个三位数字:"))

flag = is_shuixianhua(num_test)




"""

if a == True:
    print("是水仙花数")
else:
    print("不是水仙花")
"""    